﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Legazpi.Payroll.DataAccess.DataObjects;

namespace Legazpi.Payroll.BusinessLogic.Services.Interfaces
{
    public interface IRoleService
    {
       Role GetById(int id);
       Role GetByRoleName(string roleName);
       bool IsUserInRole(string userName, string roleName);

       IEnumerable<Role> GetAll();

       void Add(Role role);
       void Update(Role role);
       void Delete(int id);       
       bool Save();
    }
}
